/// 删除语句构造器
pub struct DeleteBuilder;

impl DeleteBuilder {
    /// 构建删除语句
    ///
    /// # 参数
    /// * `table_name` - 表名
    /// * `id_field` - 标识字段名
    /// * `id_value` - 标识字段的值
    ///
    /// # 返回值
    /// 返回一个包含删除语句的字符串
    pub fn build(table_name: &str, id_field: &str, id_value: &str) -> String {
        format!("DELETE FROM {} WHERE {} = {}", table_name, id_field, id_value)
    }
}

fn main() {
    // 构建删除语句
    let delete_sql = DeleteBuilder::build("users", "id", "1");
    log::info!("{}", delete_sql);
}
